Skip to content

Silence unused-variable warnings in optimizer_cases.c.h#148127

Merged
StanFromIreland merged 1 commit intopython:mainfrom
StanFromIreland:unused-vars-in-jit-things
Apr 5, 2026
Merged

Silence unused-variable warnings in optimizer_cases.c.h#148127
StanFromIreland merged 1 commit intopython:mainfrom
StanFromIreland:unused-vars-in-jit-things

Conversation

@StanFromIreland
Copy link
Copy Markdown
Member

I saw some warnings in this JIT CI run:

77
Python/optimizer_cases.c.h:5094:22: warning: unused variable 'version' [-Wunused-variable]
 5094 |             uint32_t version = (uint32_t)this_instr->operand0;
      |                      ^~~~~~~
Python/optimizer_cases.c.h:5102:22: warning: unused variable 'version' [-Wunused-variable]
 5102 |             uint32_t version = (uint32_t)this_instr->operand0;
      |                      ^~~~~~~
Python/optimizer_cases.c.h:5110:22: warning: unused variable 'version' [-Wunused-variable]
 5110 |             uint32_t version = (uint32_t)this_instr->operand0;
      |                      ^~~~~~~

Copy link
Copy Markdown
Member

@Fidget-Spinner Fidget-Spinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to merge when CI passes.

@StanFromIreland StanFromIreland merged commit d6e0445 into python:main Apr 5, 2026
98 of 99 checks passed
@StanFromIreland StanFromIreland deleted the unused-vars-in-jit-things branch April 5, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants